package ssn.user.vo;

import java.util.List;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

import egovframework.rte.fdl.string.EgovStringUtil;

import ssn.common.util.Util;
import ssn.common.vo.SearchVO;

@SuppressWarnings({"serial","unused"})
public class UserVO extends SearchVO{
	private String sau_user_id;
	@NotEmpty(message="필수 입력값 입니다.")
	private String sau_user_name;
	private String sau_user_hp;
	private String sau_user_tel;
	private String sau_pass_wrd;
	private String sau_user_pic;
	private String sau_flag_yn;
	private String sau_regi_date;
	private String sau_modi_date;
	@Pattern(regexp="^([0-9a-zA-Z_-]+)@([0-9a-zA-Z_-]+)(\\.[0-9a-zA-Z_-]+){1,2}$", message="Email 형식이 일치하지 않습니다.")
	private String sau_user_email;
		
	/**
	 * 경력 사항
	 */
	private List<UserCareerVO> userCareerVOList;
	
	/**
	 * 자격증
	 */
	private List<UserCertVO> userCertVOList;
	
	private String sau_user_hp1;
	private String sau_user_hp2;
	private String sau_user_hp3;
	
	private String sau_user_tel1;
	private String sau_user_tel2;
	private String sau_user_tel3;
	
	public List<UserCareerVO> getUserCareerVOList() {
		return userCareerVOList;
	}
	public void setUserCareerVOList(List<UserCareerVO> userCareerVOList) {
		this.userCareerVOList = userCareerVOList;
	}
	public List<UserCertVO> getUserCertVOList() {
		return userCertVOList;
	}
	public void setUserCertVOList(List<UserCertVO> userCertVOList) {
		this.userCertVOList = userCertVOList;
	}
	public String getSau_user_hp1() {
		return sau_user_hp1;
	}
	public void setSau_user_hp1(String sau_user_hp1) {
		this.sau_user_hp1 = sau_user_hp1;
	}
	public String getSau_user_hp2() {
		return sau_user_hp2;
	}
	public void setSau_user_hp2(String sau_user_hp2) {
		this.sau_user_hp2 = sau_user_hp2;
	}
	public String getSau_user_hp3() {
		return sau_user_hp3;
	}
	public void setSau_user_hp3(String sau_user_hp3) {
		this.sau_user_hp3 = sau_user_hp3;
	}
	public String getSau_user_tel1() {
		return sau_user_tel1;
	}
	public void setSau_user_tel1(String sau_user_tel1) {
		this.sau_user_tel1 = sau_user_tel1;
	}
	public String getSau_user_tel2() {
		return sau_user_tel2;
	}
	public void setSau_user_tel2(String sau_user_tel2) {
		this.sau_user_tel2 = sau_user_tel2;
	}
	public String getSau_user_tel3() {
		return sau_user_tel3;
	}
	public void setSau_user_tel3(String sau_user_tel3) {
		this.sau_user_tel3 = sau_user_tel3;
	}
	public String getSau_user_id() {
		return sau_user_id;
	}
	public void setSau_user_id(String sau_user_id) {
		this.sau_user_id = sau_user_id;
	}
	public String getSau_user_name() {
		return sau_user_name;
	}
	public void setSau_user_name(String sau_user_name) {
		this.sau_user_name = sau_user_name;
	}
	public String getSau_user_hp() {
		return sau_user_hp1+"-"+sau_user_hp2+"-"+sau_user_hp3;
	}
	public void setSau_user_hp(String sau_user_hp) {
		String[] atelArray = Util.getTelArray(sau_user_hp);
		this.sau_user_hp1 = atelArray[0];
		this.sau_user_hp2 = atelArray[1];
		this.sau_user_hp3 = atelArray[2];
		this.sau_user_hp = sau_user_hp;
	}
	public String getSau_user_tel() {
		return sau_user_tel1+"-"+sau_user_tel2+"-"+sau_user_tel3;
	}
	public void setSau_user_tel(String sau_user_tel) {
		String[] atelArray = Util.getTelArray(sau_user_tel);
		this.sau_user_tel1 = atelArray[0];
		this.sau_user_tel2 = atelArray[1];
		this.sau_user_tel3 = atelArray[2];
		this.sau_user_tel = sau_user_tel;
	}
	public String getSau_pass_wrd() {
		return sau_pass_wrd;
	}
	public void setSau_pass_wrd(String sau_pass_wrd) {
		this.sau_pass_wrd = sau_pass_wrd;
	}
	public String getSau_user_pic() {
		return sau_user_pic;
	}
	public void setSau_user_pic(String sau_user_pic) {
		this.sau_user_pic = sau_user_pic;
	}
	public String getSau_flag_yn() {
		return sau_flag_yn;
	}
	public void setSau_flag_yn(String sau_flag_yn) {
		this.sau_flag_yn = sau_flag_yn;
	}
	public String getSau_regi_date() {
		return sau_regi_date;
	}
	public void setSau_regi_date(String sau_regi_date) {
		this.sau_regi_date = sau_regi_date;
	}
	public String getSau_modi_date() {
		return sau_modi_date;
	}
	public void setSau_modi_date(String sau_modi_date) {
		this.sau_modi_date = sau_modi_date;
	}
	public String getSau_user_email() {
		return sau_user_email;
	}
	public void setSau_user_email(String sau_user_email) {
		this.sau_user_email = sau_user_email;
	}
	
	
	
}
